package com.qf.main.content.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
@author chengqiang
@Create 2024-01-22-21:49
@Description:
*/
/**
 * 发现表
 */
@ApiModel(description="发现表")
@Data
@TableName(value = "discovery")
public class Discovery {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="主键")
    private Integer id;

    /**
     * 标题
     */
    @TableField(value = "discovery_title")
    @ApiModelProperty(value="标题")
    private String discoveryTitle;

    /**
     * 图片路径
     */
    @TableField(value = "discovery_file_path")
    @ApiModelProperty(value="图片路径")
    private String discoveryFilePath;

    /**
     * 发布人
     */
    @TableField(value = "username")
    @ApiModelProperty(value="发布人")
    private String username;

    /**
     * 浏览数
     */
    @TableField(value = "`number`")
    @ApiModelProperty(value="浏览数")
    private Integer number;

    /**
     * 状态 1删除 0正常
     */
    @TableField(value = "del_status")
    @ApiModelProperty(value="状态 1删除 0正常")
    private Integer delStatus;

    /**
     * 来源
     */
    @TableField(value = "`source`")
    @ApiModelProperty(value="来源")
    private String source;

    /**
     * 详细内容
     */
    @TableField(value = "discovery_desc")
    @ApiModelProperty(value="详细内容")
    private String discoveryDesc;

    /**
     * 分类id
     */
    @TableField(value = "classification")
    @ApiModelProperty(value="分类id")
    private Integer classification;

    public static final String COL_ID = "id";

    public static final String COL_DISCOVERY_TITLE = "discovery_title";

    public static final String COL_DISCOVERY_FILE_PATH = "discovery_file_path";

    public static final String COL_USERNAME = "username";

    public static final String COL_NUMBER = "number";

    public static final String COL_DEL_STATUS = "del_status";

    public static final String COL_SOURCE = "source";

    public static final String COL_DISCOVERY_DESC = "discovery_desc";

    public static final String COL_CLASSIFICATION = "classification";
}